import http from '@/utils/http'

/** 提现-接口 /operation/withdraw
 * 投资人提现
 */
export const getCashApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/withdraw',
    params,
  })
}

/** 分账明细-接口 /operation/withdraw/bill/list
 * @param pageNum  页码
 * @param pageSize 分页数量
 */
export const getCashDetailsApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/withdraw/bill/list',
    params,
  })
}

/** 提现历史-接口 /operation/withdraw/history/list
 * @param pageNum  页码
 * @param pageSize 分页数量
 */
export const getCashHistoryApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/withdraw/history/list',
    params,
  })
}

/** 额度统计-接口 /operation/withdraw/summary */
export const getCashSummaryApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/withdraw/summary',
    params,
  })
}

/** 获取规则 */
export const getCashRuleApi = (params) => {
  return http({
    url: '/operation/accountfde/find',
    method: 'get',
    params,
  })
}
